﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ReBiaoDTU;

namespace ReBiaoDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            byte[] b = new byte[61] {0x68,0x37 ,0x37 ,0x68 ,0x08 ,0x07 ,0x72 ,0x88 ,0x46 ,0x02 ,0x10 ,0x29 ,0x5C
            ,0x01 ,0x04 ,0x00 ,0x90 ,0x00 ,0x00 ,0x0C ,0x07 ,0x00 ,0x00 ,0x00 
            ,0x00 ,0x0C ,0x16 ,0x00 ,0x00 ,0x00 ,0x00 ,0x0B ,0x59 ,0x00 ,0x25 ,0x00 ,0x0B 
            ,0x5D ,0x00 ,0x25 ,0x00 ,0x0C ,0x3B ,0x00 ,0x00 ,0x00 ,0x00 ,0x0C ,0x2B ,0x00 ,0x00 ,0x00 ,0x00 ,0x04 ,0x6D ,0x1D ,0x09 ,0x43 ,0x11 ,0x2F ,0x16 };
            ReBiaoData r = ReBiaoData.MakeReBiaoData(b);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ReadReBiao r = new ReadReBiao();
            List<string> tx=new List<string>();
            tx.Add("18745161051");
            //r.GetData("18745161051", tx);
            List<ReBiaoData> dataList;
            if (r.GetData("18745161051", tx,out dataList))
                MessageBox.Show("OK");
            else
                MessageBox.Show("err");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            ReBiaoPick.StopSever();
        }
    }
}
